package com.service;

import com.pojo.User;
import com.utils.UserException;

import java.util.List;

public interface UserService {
    User login(String username, String password) throws UserException;
    User findUserById(Integer id) throws UserException;
    Boolean addUser(User user) throws Exception;
    Boolean updateUser(User user) throws UserException;
    Boolean deleteUser(Integer id) throws UserException;
    List<User> findAllUser() throws UserException;
}

